'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    await this.ctx.render("index",{fruits:["香蕉","苹果","鸭梨"]})
  }
  async home() {
    const { ctx } = this;
    ctx.body = `
      <h1>你好贾维斯</h1>
    `;
  }
  async getData(){
    this.ctx.body = "helli egg"
  }
}

module.exports = HomeController;
